package com.jeff.tianti.cms.dao;

import com.jeff.tianti.cms.dto.QuestionsAnswersQueryDTO;
import com.jeff.tianti.cms.entity.QuestionsAnswers;
import com.jeff.tianti.cms.entity.Resume;
import com.jeff.tianti.common.dao.CommonDao;
import com.jeff.tianti.common.entity.PageModel;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;

/**
 * @author xujianfang
 * @desc QuestionsAnswersDao�ӿ� 
 * @date 2019-07-04
 */
public interface QuestionsAnswersDao extends QuestionsAnswersDaoCustom,CommonDao<QuestionsAnswers,String>{
    @Query(" from QuestionsAnswers q where q.auditFlag=0 and q.uid = ?1 and q.deleteFlag = 0 ")
    Page<QuestionsAnswers> findByUidAndTypeIsAuditFlag(String uid, Pageable pageable);
}